Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent error in github action if no benchmarks are run. #107

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

tompollard
Copy link
Contributor

We currently have a github action that runs benchmarks when a format is added or edited.

The action errors out when base formats are edited because the "Run benchmark tests" step is skipped but the "Concatenate results" step is still looking for benchmark_results_*.txt file/s to report. See for example: https://github.com/chorus-ai/chorus_waveform/actions/runs/11615143978/job/32344989477

This pull request should fix the problem, by wrapping the cat benchmark_results_*.txt step in an if clause. If the file doesn't exist, we now report "No benchmarks were run.", instead of raising an error.

@briangow
Copy link
Collaborator

Thanks @tompollard , this looks good me!

@briangow briangow merged commit bd8b523 into main Oct 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants